home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // StFilSys.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
- // From: StFilSys.pas
- //----------------------------------------------------------------------------
- #ifndef StFilSysHPP
- #define StFilSysHPP
- //----------------------------------------------------------------------------
- #include <TypInfo.hpp>
- #include <FileIntf.hpp>
- #include <EditIntf.hpp>
- #include <Exptintf.hpp>
- #include <IStreams.hpp>
- #include <VirtIntf.hpp>
- #include <SysUtils.hpp>
- #include <Classes.hpp>
- #include <System.hpp>
- #pragma warn -par
- #pragma warn -hid
- #pragma warn -inl
-
- namespace Stfilsys
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TModuleNotifier;
- class __declspec(delphiclass) TActiveTStringsProperty;
- class __declspec(pascalimplementation) TActiveTStringsProperty : public Classes::TComponent
- {
- typedef Classes::TComponent inherited;
-
- private:
- Classes::TComponent* FComponent;
- System::AnsiString FPropertyName;
- Editintf::TIModuleInterface* FModuleInterface;
- Editintf::TIModuleInterface* FFormModuleInterface;
- TModuleNotifier* FModuleNotifier;
- TModuleNotifier* FFormModuleNotifier;
- int FIndex;
- long FDiskAge;
- void __fastcall SetModuleInterface(Editintf::TIModuleInterface* Value);
- void __fastcall SetComponent(Classes::TComponent* Value);
-
- protected:
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
-
- public:
- __fastcall TActiveTStringsProperty(Classes::TComponent* AOwner, Classes::TComponent* AComponent, const System::AnsiString
- APropertyName);
- __fastcall virtual ~TActiveTStringsProperty(void);
- void __fastcall RenameComponent(const System::AnsiString OldName, const System::AnsiString NewName)
- ;
- __property Editintf::TIModuleInterface* ModuleInterface = {read=FModuleInterface, write=SetModuleInterface
- , nodefault};
- __property Classes::TComponent* Component = {read=FComponent, write=SetComponent, nodefault};
- __property System::AnsiString PropertyName = {read=FPropertyName, write=FPropertyName, nodefault};
- __property long DiskAge = {read=FDiskAge, write=FDiskAge, nodefault};
- public:
- /* TComponent.Create */ __fastcall virtual TActiveTStringsProperty(Classes::TComponent* AOwner) : Classes::
- TComponent(AOwner) { }
-
- };
-
- class __declspec(pascalimplementation) TModuleNotifier : public Editintf::TIModuleNotifier
- {
- typedef Editintf::TIModuleNotifier inherited;
-
- private:
- TActiveTStringsProperty* FOwner;
- __fastcall TModuleNotifier(TActiveTStringsProperty* AOwner);
-
- public:
- virtual void __stdcall Notify(Editintf::TNotifyCode NotifyCode);
- virtual void __stdcall ComponentRenamed(void * ComponentHandle, const System::AnsiString OldName, const System::AnsiString
- NewName);
- public:
- /* TInterface.Create */ __fastcall TModuleNotifier(void) : Editintf::TIModuleNotifier() { }
-
- public:
- /* TObject.Destroy */ __fastcall virtual ~TModuleNotifier(void) { }
-
- };
-
- class __declspec(delphiclass) TFormModuleNotifier;
- class __declspec(pascalimplementation) TFormModuleNotifier : public TModuleNotifier
- {
- typedef TModuleNotifier inherited;
-
- public:
- virtual void __stdcall Notify(Editintf::TNotifyCode NotifyCode);
- virtual void __stdcall ComponentRenamed(void * ComponentHandle, const System::AnsiString OldName, const System::AnsiString
- NewName);
- public:
- /* TInterface.Create */ __fastcall TFormModuleNotifier(void) : Stfilsys::TModuleNotifier() { }
-
- public:
- /* TObject.Destroy */ __fastcall virtual ~TFormModuleNotifier(void) { }
-
- };
-
- class __declspec(delphiclass) TStringsStream;
- class __declspec(pascalimplementation) TStringsStream : public Virtintf::TIStream
- {
- typedef Virtintf::TIStream inherited;
-
- private:
- Classes::TComponent* FComponent;
- Classes::TStrings* FStringsProperty;
- TActiveTStringsProperty* FActiveTStringsProperty;
- Classes::TMemoryStream* FMemoryStream;
- bool FModified;
- long FFileAge;
- __fastcall TStringsStream(TActiveTStringsProperty* ActiveTStringsProperty, Classes::TComponent* AComponent
- , const System::AnsiString APropName, int Mode);
- __fastcall virtual ~TStringsStream(void);
- void __fastcall SetDesignerModified(void);
-
- public:
- virtual long __stdcall Read(void *Buffer, long Count);
- virtual long __stdcall Write(const void *Buffer, long Count);
- virtual long __stdcall Seek(long Offset, Word Origin);
- virtual long __stdcall GetModifyTime(void);
- virtual void __stdcall SetModifyTime(long Time);
- public:
- /* TInterface.Create */ __fastcall TStringsStream(void) : Virtintf::TIStream() { }
-
- };
-
- class __declspec(delphiclass) TStringsFileSystem;
- class __declspec(pascalimplementation) TStringsFileSystem : public Fileintf::TIVirtualFileSystem
- {
- typedef Fileintf::TIVirtualFileSystem inherited;
-
- private:
- Classes::TStringList* FActiveTStringsProperties;
-
- public:
- __fastcall TStringsFileSystem(void);
- __fastcall virtual ~TStringsFileSystem(void);
- TActiveTStringsProperty* __fastcall GetTStringsProperty(const System::AnsiString IDent, Classes::TComponent*
- AComponent, const System::AnsiString APropertyName);
- virtual Virtintf::TIStream* __stdcall GetFileStream(const System::AnsiString FileName, int Mode);
- virtual long __stdcall FileAge(const System::AnsiString FileName);
- virtual bool __stdcall RenameFile(const System::AnsiString OldName, const System::AnsiString NewName
- );
- virtual bool __stdcall IsReadonly(const System::AnsiString FileName);
- virtual bool __stdcall IsFileBased(void);
- virtual bool __stdcall DeleteFile(const System::AnsiString FileName);
- virtual bool __stdcall FileExists(const System::AnsiString FileName);
- virtual System::AnsiString __stdcall GetTempFileName(const System::AnsiString FileName);
- virtual System::AnsiString __stdcall GetBackupFileName(const System::AnsiString FileName);
- virtual System::AnsiString __stdcall GetIDString(void);
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define sTStringsFileSystem "Delphi.TStringsFileSystem"
- extern TStringsFileSystem* StringsFileSystem;
- extern void __fastcall Register(void);
- extern void __fastcall finalization(void);
-
- } /* namespace Stfilsys */
-
- #pragma warn .par
- #pragma warn .hid
- #pragma warn .inl
-
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Stfilsys;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // StFilSys
-